﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSmityukh.WP.TitleLocalizationTool
{
	internal static class Guard
	{
		public static void NotNull(object value)
		{
			if(value == null)
			{
				throw new ArgumentNullException();
			}			
		}

		public static void NotNullAndEmpty(string value)
		{
			if (string.IsNullOrEmpty(value))
			{
				throw new ArgumentException();
			}
		}

		public static void NotNullAndWhiteSpace(string value)
		{
			if (string.IsNullOrWhiteSpace(value))
			{
				throw new ArgumentException();
			}
		}
	}
}
